package com.hdit.guimei.web;

import com.hdit.guimei.domain.UnionGoods;
import com.hdit.guimei.service.UnionGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @基本功能: 联合查询商品信息
 * @ClassName: UnionGoodsController
 * @Description: TODO
 * @Author: 李嘉明
 * @Date: 2021/1/22 9:29
 * @Version 1.0
 */
@Controller
public class UnionGoodsController {
    @Autowired
    private UnionGoodsService unionGoodsService;

    /**
    * @Method: findAllUnionGoods
    * @函数(方法)功能: 联合查询商品信息
    * @Author: 李嘉明
    * @params:  [good_id]
    * @Return: com.hdit.guimei.domain.UnionGoods
    * @Exception:
    * @Date: 2021/1/22 9:32
    */
    @RequestMapping("/findAllUnionGoods")
    @ResponseBody
    public UnionGoods findAllUnionGoods(int good_id){
        System.out.println(good_id);
        UnionGoods unionGoods = unionGoodsService.findUnionGoods(good_id);
        System.out.println(unionGoods);
        return unionGoods;
    }
}
